import Vue from 'vue'
import Router from 'vue-router'

import Index from '../views/index/index' // 首页面
import Login from '../views/login/index' // 登录页
import Forget from '../views/forget/index'
import ForumIndex from '../views/forum/index'

import ForumPost from '../views/forum/forumPost'
import ForumDetails from '../views/forum/forumDetails'
import Print from '../views/print/index' // 打印报告
import ReportCards from '../views/print/reportCards' // 报告预览
import RecCell from '../views/record/reccell' // 档案管理细胞病理
import RecOrg from '../views/record/recorg' // 档案管理组织病理
import ExpertCell from '../views/expert/expertCell' // 专家页面细胞病理
import ExpertOrg from '../views/expert/expertOrg' // 专家页面组织病理
import Statistics from '../views/statistics/index' // 会诊统计
import LiveIndex from '../views/live/liveIndex' // 图像上传
import ImageConsultation from '../views/live/ImageConsultation' // 会诊影像业务专家页面
import Anchor from '../views/live/anchor' // 主播页面
import Audience from '../views/live/audience' // 观众页面
import Diagnose from '../views/diagnose/index' // 会诊诊断

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/forget',
      name: 'Forget',
      component: Forget
    },
    {
      path: '/forum/index',
      name: 'ForumIndex',
      component: ForumIndex
    },
    {
      path: '/forum/forumDetails',
      name: 'forumDetails',
      component: ForumDetails
    },
    {
      path: '/live/index',
      name: 'liveIndex',
      component: LiveIndex
    }, {
      path: '/live/anchor',
      name: 'anchor',
      component: Anchor
    }, {
      path: '/live/audience',
      name: 'audience',
      component: Audience
    }, {
      path: '/live/imageConsultation',
      name: 'imageConsultation',
      component: ImageConsultation
    },
    {
      path: '/forum/forumPost',
      name: 'forumPost',
      component: ForumPost
    },
    {
      path: '/print',
      name: 'print',
      component: Print
    },
    {
      path: '/recCell',
      name: 'recCell',
      component: RecCell
    },
    {
      path: '/recOrg',
      name: 'recOrg',
      component: RecOrg
    },
    {
      path: '/expertCell',
      name: 'expertCell',
      component: ExpertCell
    },
    {
      path: '/expertOrg',
      name: 'expertOrg',
      component: ExpertOrg
    },
    {
      path: '/statistics',
      name: 'statistics',
      component: Statistics
    },
    {
      path: '/print/reportCards',
      name: 'reportCards',
      component: ReportCards
    },
    {
      path: '/diagnose',
      name: 'diagnose',
      component: Diagnose
    }
  ],
  scrollBehavior(to, from, savePosition) {
    return {x: 0, y: 0}
  }
})
